import time

def show_progress(scale, dayup, daydown, interval=0.1):
    print("------执行开始------")
    for i in range(scale + 1):
        a = '*' * i
        b = '.' * (scale - i)
        c = (i / scale) * 100
        print("{:^3.0f}%[{}->{}]".format(c, a, b))
        time.sleep(interval)
    print("------执行结束------")

scale = 10
dayup = 1.01
daydown = 0.999
interval = 0.1
show_progress(scale, dayup, daydown, interval)
